﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jumpton.SFA.Server.BusinessRule;
using System.Web.Services;
using System.Data;

public partial class Reports_Visit_Month_ByOrg : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
           
        }
    }

    [WebMethod]
    public static string SelectMethodDate(decimal Domain_ID, string Start_Date, string End_Date, string Users_ID, string ShowType)
    {
        ReportData Report = new ReportData();
        DataSet ds = Report.getSalesAchievementRates(Domain_ID, Start_Date, End_Date, Users_ID, ShowType);

        if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
            return "";
        string sb = BusinessRule.JsonHelper.DataSetToJson(ds);
        return sb;
    }
}